<!--
Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-->

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
  <title>Lighthouse Report Viewer</title>
  <link rel="manifest" href="manifest.json">
  <link rel="icon" href="">
  <meta name="theme-color" content="#304ffe">
  <link rel="stylesheet" href="styles/viewer.css">
</head>
<body class="lh-root lh-vars">
<div hidden>%%LIGHTHOUSE_TEMPLATES%%</div>

<div class="drop_zone"></div>

<main><!-- report populated here --></main>

<div class="viewer-placeholder">
  <div class="viewer-placeholder-inner">
    <div>
      <img src="images/lh_logo_bg.png" class="viewer-placeholder-logo" alt="Lighthouse logo">
    </div>
    <div>
      <h1 class="viewer-placeholder__heading">Lighthouse Report Viewer</h1>
      <div class="viewer-placeholder__help">To view a report: Paste its json or a Gist URL.<br>
      You can also drag 'n drop the file or click here to select it.</div>
      <input type="url" class="viewer-placeholder__url js-gist-url"
             placeholder="Enter or paste Gist URL">
    </div>
  </div>
</div>

<div id="lh-log"></div>

<input id="hidden-file-input" type="file" hidden accept="application/json">

<script src="https://www.gstatic.com/firebasejs/4.1.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.1.2/firebase-auth.js"></script>
<script src="src/viewer.js"></script>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-85519014-2', 'auto');
  ga('send', 'pageview');
</script>
</body>
</html>
